package com.daqian.chance.example.web.modules.member.controller;

import com.daqian.chance.core.exception.ServiceException;
import com.daqian.chance.core.rest.RestResult;
import com.daqian.chance.example.web.modules.member.po.req.SuggestQueryWebReq;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/test/redis")
public class RedisController {


    @GetMapping("req")
    public RestResult testSuggestQueryWebRequest(SuggestQueryWebReq suggestQueryWebReq) {
//        String testKey = "SuggestQueryWebRequest";
////        redisService.setValue(testKey, suggestQueryWebReq, 100);
//        return RestResult.ok(redisService.getValue(testKey));
        throw new ServiceException("创建商品错误");
    }

}
